//
//  LcHierarchyManager.h
//  18Birdies
//
//  Created by poleness on 2017/3/13.
//  Copyright © 2017年 Lc. All rights reserved.
//

#import "LcFoundation.h"

@interface LcHierarchyManager : NSObject

+ (UIViewController*)viewControllerOfClass:(Class)aClass
                    inNavigationController:(UINavigationController*)navigationController;
+ (UIViewController*)lastViewControllerOf:(UIViewController*)viewController;

+ (BOOL)needDismissPresentedViewController:(UIViewController*)viewController;

+ (NSString*)currentCompleteHierarchyContext;
+ (NSString*)currentBriefHierarchyContext;

+ (void)removeViewController:(UIViewController*)viewController
      inNavigationController:(UINavigationController*)navigationController;
+ (void)removeViewControllerOfClass:(Class)aClass
             inNavigationController:(UINavigationController*)navigationController;
+ (void)removeViewControllerOfClasses:(NSArray*)aClasses
               inNavigationController:(UINavigationController*)navigationController;

@end
